<?php
	if($this->page_id > 0){
		$page = new CMS_Content_Item_page($this->page_id);
		$pageName = $page->name;
	} else {
		$pageName = null;
	}
?>
<tr>
	<td class='links'>
		<a href='/MenuItem/update/id/<?php echo $this->id;?>'>Update</a>
		<a href='/MenuItem/move/direction/up/id/<?php echo $this->id;?>'>Move down</a>
		<a href='/MenuItem/delete/id/<?php echo $this->id;?>'>Delete</a>
	</td>
	<td><?php echo $this->label;?></td>
	<td><?php echo $pageName ;?></td>
	<td><?php echo $this->link;?></td> 
</tr>